package com.xiaoxi.exam;

import cn.xinzhili.xutils.core.util.HashUtils;
import com.aliyuncs.exceptions.ClientException;
import com.xiaoxi.exam.utils.MailUtil;
import com.xiaoxi.exam.utils.SmsUtil;
import java.io.IOException;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import org.junit.Test;

public class Localtest {

  @Test
  public void tsetDate() {
    System.out.println(LocalDate.now().format(DateTimeFormatter.ofPattern("yyyyMMdd")));
  }

  @Test
  public void getHash() {
    System.out.println(HashUtils.encode(266));
    System.out.println(HashUtils.decode("48goa8"));
//    MailUtil.sendSSLMail("111", "222", "333", "222", "123 123", "123", "123", "123");
  }

  @Test
  public void testDouble() {
    System.out.println(String.valueOf(Double.valueOf("0.01") * 100)
        .substring(0, String.valueOf(Double.valueOf("0.01") * 100).indexOf(".")));
  }

  @Test
  public void testhash() {
    System.out.println(HashUtils.encode(176));
  }

  @Test
  public void start() {

  }

}
